<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$footernav =array(
		array('title'=>'首页','icon'=>'icon-shouye','action'=>'jy_peiedu/index/'),
		array('title'=>'中心概况','icon'=>'icon-tuwenwenzhen','action'=>'jy_peiedu/about/'),
		array('title'=>'政务资讯','icon'=>'icon-gengduotupian','action'=>'jy_peiedu/news/'),
		array('title'=>'通知公告','icon'=>'icon-lingsheng4','action'=>'jy_peiedu/gonggao/'),
		array('title'=>'证书查询','icon'=>'icon-form','action'=>'jy_peiedu/cha/'),
	);
	$return['item']=$this->plugin_setting('basic');
	$return['item']['footernav']=$return['item']['footernav']?$return['item']['footernav']:$footernav;
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'基本信息',
				'list'=>array(
					array('type'=>'string','title'=>'网站名称','name'=>'title'),
					array('type'=>'image','title'=>'网站logo','name'=>'logo'),
					array('type'=>'string','title'=>'备案域名','name'=>'domain' ),
					array('type'=>'string','title'=>'ICP备案号','name'=>'icp' ),
					array('type'=>'string','title'=>'互联网信息服务ICP经营许可证','name'=>'cip','help'=>'申请地址：https://tsm.miit.gov.cn/dxxzsp/'),
					array('type'=>'string','title'=>'互联网信息服务ICP经营许可证链接地址','name'=>'cipurl','help'=>'申请地址：https://tsm.miit.gov.cn/dxxzsp/'),
					array('type'=>'string','title'=>'增值电信业务EDI经营许可证','name'=>'edi','help'=>'申请地址：https://tsm.miit.gov.cn/dxxzsp/'),
					array('type'=>'string','title'=>'增值电信业务EDI经营许可证链接地址','name'=>'ediurl','help'=>'申请地址：https://tsm.miit.gov.cn/dxxzsp/'),
					array('type'=>'string','title'=>'公网安备号','name'=>'gongan','help'=>'写全：例如：京公网安备 11010102002019号 '),
					array('type'=>'string','title'=>'公网安备号URL','name'=>'gonganurl' ),
					array('type'=>'string','title'=>'分享标题','name'=>'share_title'),
					array('type'=>'image','title'=>'分享图片','name'=>'share_image'),
					array('type'=>'string','title'=>'分享描述','name'=>'share_desc'),
				)
			),
			array(
					'title'=>'界面UI配色',
					'list'=>array(
						array('type'=>'color_pool','title'=>'选择配色方案','name'=>'syscolor','help'=>''),
						array('type'=>'colorpicker','title'=>'站点颜色','name'=>'syscolor','help'=>'自定义系统颜色系，默认： #18bc9c'),
						array('type'=>'phone_tpl','name'=>'syscolor'),
					)
			),
			array(
				'title'=>'底部导航',
					'list'=>array(
									array('type'=>'array','name'=>'footernav','add_tip'=>'添加一个底部导航',
									'list'=>array(
										array('type'=>'string','name'=>'title','title'=>'导航名称'),
										array('type'=>'icon','name'=>'icon','from'=>'jinyunicon','title'=>'导航图标'),
										array('type'=>'string','name'=>'action','title'=>'导航链接'),							
									),
									'details'=>array(
										array('type'=>'string','name'=>'title','title'=>'导航名称'),
										array('type'=>'icon','name'=>'icon','from'=>'jinyunicon','title'=>'导航图标','help'=>'图标，例如：icon-shouye'),							
										array('type'=>'link','name'=>'action','from'=>'action','title'=>'导航链接'),
									)
								),
					)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
